import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const home: AppRouteModule = {
  path: '/home',
  name: 'Home',
  component: LAYOUT,
  redirect: '/home/classification',
  meta: {
    orderNo: 10,
    icon: 'ant-design:folder-open-filled',
    title: '文件管理',
  },
  children: [
    {
      path: 'classification',
      name: 'Classification',
      component: () => import('@/views/home/classification/index.vue'),
      meta: {
        title: '分类列表',
      },
    },
    {
      path: 'images-list',
      name: 'ImagesList',
      component: () => import('@/views/home/images-list/index.vue'),
      meta: {
        title: '文件列表',
        hideTab: true,
        hideMenu: true,
      },
    },
  ],
};

export default home;
